const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  userId: (state) => state.user.userInfo.userId,
  routes: (state) => state.user.routes,
  avatar: (state) => state.user.userInfo.staffPhoto, //用户头像信息
  name: (state) => state.user.userInfo.username, //用户名
  routesLoaded: (state) => state.routesLoaded,
  company: (state) => state.user.userInfo.company,
  departmentName: (state) => state.user.userInfo.departmentName,
};
export default getters;
